package com.wimcorp.magic.dataloader.dto;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.wimcorp.magic.data.CardData;




public class DeckDTO  implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;

	private String name;
	private String playerName;

	private Set<CardData> cards;

	private String code;

	public DeckDTO() {
	}

	public DeckDTO(String name, Set<CardData> cards) {
		super();
		this.name = name;
		// this.playerName = playerName;
		this.cards = cards;
	}

	public DeckDTO(String code,String name) {
		super();
		this.name = name;
		this.code= code;
		// this.playerName = playerName;
		this.cards = new HashSet<CardData>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		
		this.name = name;
	}

	/*
	 * public String getPlayerName() { return playerName; }
	 * 
	 * public void setPlayerName(String playerName) { this.playerName =
	 * playerName; }
	 */

	public Set<CardData> getCards() {
		return cards;
	}

	public void setCards(Set<CardData> cards) {
		this.cards = cards;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}
	
	

}
